<!DOCTYPE html>
<html>
<head lang="en">
    <title>设备监控 - 门禁设备</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/cwp/favicon.ico" type="image/x-icon" />
    <!--引入CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/list.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/btn.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/tabs.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/taqs.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/panel.css"  />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/table.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/zTree/css/metroStyle/metroStyle.css"/>

    <!--引入bootstrap CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-3.3.5-dist/css/bootstrapModel.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/animate.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/smartSecurity/device.css"/>
    <link rel="stylesheet" type="text/css" href="../../../assets/css/smartSecurity/deviceMenu.css"/>
     <!--日历控件样式-->
     <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css"/>
     <style>
        .tab-content{
            position: relative;
            height: 170px;
        }
        .startEndDate{
            position: absolute;
            top:6px;
            right: 10px;
            line-height: 28px;
        }
        .startEndDate input{
            background: #FFF url(../../../assets/img/btn-icon.png) no-repeat right -3px;
            border: 1px solid #DDD;
            padding: 3px;
        }
        .tab-content .t-list-result{
            position: absolute;
            width: 100%;
            height: 120px;
            top: 40px;
            overflow: auto;
        }
     </style>
</head>
<body>

<!--头部文件 开始-->
<div id="header" class="hide"></div>
<!--头部文件 结束-->


<!--主要内容开始-->
<div class="wrapper">
    <!--左侧菜单 开始-->
    <div id="left-menu" class=""></div>
    <div class="center_td">

        <!--右边菜单-->
        <!--右中间-->
        <div id="left-menu-secondary">

        </div>
        <!--右右菜单-->
        <div id="right-menu-secondary" class="">
            <div class="right-menu-secondary">
                <div class="menu-list-secondary">

                </div>
            </div>
        </div>
        <form id="frmTree">
            <input type="hidden" id="buildingId" value=""/>
        </form>
    </div>
    <!--右侧内容 开始-->
    <div class="right-container right-container-lg">
        <div class="right-scroll">
            <div class="t-list" style="width: 100%;height: 100%;">
                <!--门禁设备-->
                <div class="t-building">
                    <!--楼层-->
                    <div class="img-title">
                        <div class="clearfix mb-5">
                            设备状态
                        </div>
                        <div class="clearfix">
                            <div class="clearfix item">
                                <img src="../../../assets/img/menjin1-1.png"><span>正常运行</span>
                            </div>
                            <div class="clearfix item">
                                <img src="../../../assets/img/menjin2-1.png"><span>设备报警</span>
                            </div>
                            <!--<div class="clearfix item">-->
                            <!--<img src="../../../assets/img/menjin3-1.png"><span>设备停运</span>-->
                            <!--</div>-->
                        </div>
                        <!--<div class="clearfix mt-10">-->
                            <!--<a class="t-btn t-btn-blue" id="btnOpenAll" data-ip="" data-target="" style="">一键开门</a>-->
                        <!--</div>-->

                        <ul id="deviceInfo" class="mt-10">

                        </ul>
                    </div>
                    <div id="floor-list">

                    </div>
                    <!--远程桌面-->
                    <iframe class="laptop-iframe hide" id="laptop-iframe" src ="http://120.194.44.253:8080/guacamole">
                        <p>您的浏览器不支持iframe框架。</p>
                    </iframe>
                    <div class="status-bar-laptop">
                        <div class="toLaptop">
                            <span class="icon-windows8 laptop-icon"></span>
                            <!-- <span class="laptop-icon-btn">远程桌面</span> -->
                        </div>
                        <div class="toHome hide">
                            <span class="icon-exit laptop-icon"></span>
                            <span class="laptop-icon-btn">返回</span>
                        </div>
                    </div>
                    <!--工具栏-->
                    <div class="status-bar clearfix">
                        <img src="../../../assets/img/compass_icon.png" style="width: 100%"/>
                    </div>
                </div>

                <div class="info-box t-tabs"><!--  style="overflow: auto;" -->
                    <ul id="myTabs" class="t-tabs-items clearfix">
                        <li class="active"><a href="#tab1" data-toggle="tab">运行日志</a></li>
                        <li><a href="#tab2" data-toggle="tab">安防告警</a></li>
                        <li style="float: right; "><a class="t-btn t-btn-blue" style="font-size: 32px;" id="btnCloseList" >×</a></li>
                    </ul>
                    <!--列表-->
                    <div id="myTabContent" class="tab-content" style="padding-bottom: 0">
                        <form id="frmSearch" class="startEndDate">
                            <label>起止日期：</label>
                            <input class="form_date_start bg-date" value="" placeholder="开始时间" readonly id="startTime" name="startTime"/>
                            <span>~</span>
                            <input class="form_date_end bg-date" value="" placeholder="结束时间" readonly id="endTime" name="endTime"/>
                            <a class="t-btn" id="btnSearchFault">
                                <i class="icon-search"></i>
                                查询
                            </a>
                        </form>
                        <div class="tab-pane fade in active" id="tab1">
                            <div class="t-list-btns" style="margin-top: 0">
                                <p>请求记录</p>
                                <span id="faultAlarmTabTotal"></span>
                                
                                
                                <!--<div >-->
                                <!--<a class="t-btn t-btn-blue" id="btnConDoor" data-ip="" data-target="">开门</a>-->
                                <!--</div>-->
                                <div class="pagination" id="tabUserServicePagination"></div>
                            </div>

                            <div class="t-list-result clearfix">
                                <input type="hidden" id="hidDeviceID" name="deviceId" value=""/>
                                <!-- 表格 -->
                                <table class="t-table" id="faultAlarmTab" style="margin: 0">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>姓名</th>
                                        <th>卡号</th>
                                        <th>时间</th>
                                        <th>事件</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    </tbody>
                                </table>
                                <div class="loading-container"></div>
                                <!-- 分页 -->
                                <div class="pagination" id="faultAlarmTabPagination"></div>
                            </div>
                        </div>
                        <div class="tab-pane fade" id="tab2">
                            <div class="t-list-btns" style="margin-top: 0">
                                <p>请求记录</p>
                                <span id="deviceReportTotal"></span>
                            </div>

                            <div class="t-list-result clearfix">
                                <input type="hidden" id="hidDeviceID1" name="deviceId" value=""/>
                                <!-- 表格 -->
                                <table class="t-table" id="deviceReport" style="margin: 0">
                                    <thead>
                                    <tr>
                                        <th>告警编号</th>
                                        <th>来源</th>
                                        <th>描述</th>
                                        <th>时间</th>
                                        <th>状态</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    </tbody>
                                </table>
                                <div class="loading-container"></div>
                                <!-- 分页 -->
                                <div class="pagination" id="deviceReportPagination"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--左侧菜单 结束-->
</div>
<!--版权-->
<!--<div id="copyright" class="hide"></div>-->


<!--提示模态框-->
<div class="modal fade bs-example-modal-sm" id="myTip" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body" style="text-align:center;font-size:14px;">
                <i id="icon-tip" style="margin-right:6px;"></i>
                <span class="tip-info"></span>
            </div>
        </div>
    </div>
</div>

<!--开关确认模态框-->
<div class="modal fade bs-example-modal-sm" id="modalSwitch" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">门禁设备控制</h4>
            </div>
            <div class="modal-body">
                <div class="t-list">
                    <input type="hidden"  id="hidSwitch" value=""/>
                    <div class="content" style="line-height: 24px">

                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary"  id="btnConfirm">确定</button>
            </div>
        </div>
    </div>
</div>

<!--开关确认模态框-->
<!--<div class="modal fade bs-example-modal-sm" id="modalSwitchAll" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">-->
    <!--<div class="modal-dialog modal-sm" role="document">-->
        <!--<div class="modal-content">-->
            <!--<div class="modal-header">-->
                <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
                <!--<h4 class="modal-title">门禁设备控制</h4>-->
            <!--</div>-->
            <!--<div class="modal-body">-->
                <!--<div class="t-list">-->
                    <!--<div class="content" style="line-height: 24px">-->
                        <!--是否打开所有门禁设备-->
                    <!--</div>-->
                <!--</div>-->
            <!--</div>-->
            <!--<div class="modal-footer">-->
                <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
                <!--<button type="button" class="btn btn-primary"  id="btnConfirmAll">确定</button>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->



<!--jQuery库脚本-->
<!--非IE8浏览器-->
<!--[if !(IE 8)]><!--><script type="text/javascript" src="../../../assets/lib/jquery/jquery.min.js"></script><!--<![endif]-->
<!--IE8浏览器-->
<!--[if IE 8]><script type="text/javascript" src="../../../assets/lib/jquery/jquery-ie8.min.js"></script><![endif]-->
<script type="text/javascript" src="../../../assets/lib/jQuery-slimScroll-1.3.8/jquery.slimscroll.min.js"></script>

<script charset="utf-8" src="../../../assets/lib/tipModal/js/tipModal.js"></script>

<script src="../../../assets/common/loadHeaderAndCopyright.js"></script>
<script src="../../../assets/common/loadLeftMenuDevice.js"></script>
<!--模态框-->
<script src="../../../assets/lib/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<!--bootsrtap日历控件脚本-->
<script charset="utf-8" src="../../../assets/lib/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
<script charset="utf-8" src="../../../assets/lib/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<!-- <script charset="utf-8" src="../../../assets/lib/bootstrap-datetimepicker-master/js/initDatetimepicker.js"></script> -->
<!--模态提示框-->
<script src="../../../assets/common/centerModal.js"></script>
<script src="../../../assets/common/ajaxPoster.js"></script>
<!--分页脚本-->
<script charset="utf-8" src="../../../assets/lib/pagination/1.2.1/jquery.pagination.js"></script>
<script charset="utf-8" src="../../../assets/common/loaderTable.js"></script>

<script charset="utf-8" src="../../../assets/lib/artTemplate/template.js"></script>
<script src="../../../assets/common/loaderTableTmpl.js"></script>
<script src="../../../js/monitorDevices/smartSecurity/initGuard.js"></script>
<!--加载设备详情信息-->
<script type="text/html" id="deviceMenuTmpl">
    <dl><dt><span class='icon-circle-down'></span><i class='title'>{{titleName}}</i></dt>
        <div class='dd-list'>
            <div class='div-c'>
</script>
<!--运行日志-->
<script type="text/html" id="deviceDetailTmpl">
    {{each beans}}
    <tr><td>{{$value.cardId}}</td><td>{{$value.staffName}}</td><td>{{$value.staffNo}}</td><td>{{$value.createtime}}</td><td>{{$value.eventName}}</td></tr>
    {{/each}}
</script>
<!--故障告警-->
<script type="text/html" id="deviceReportTmpl">
    {{each beans}}
    <tr>
        <td>{{$value.alarmNumber}}</td>
        <td>{{$value.eventFromSystem | eventFromSystemFormat}}</td>
        <td>{{$value.eventDescribe}}</td>
        <td>{{$value.applyTime}}</td>
        <td>{{$value.eventProcessStatus | eventProcessStatusFormat}}</td>
    </tr>
    {{/each}}
</script>
<!--加载楼层地图-->
<script type="text/html" id="mapTmpl">
    {{each beans}}
    <div class="floor-image {{$value.num | mapFormat}}" id="floor{{$value.buildingId}}">
        <img src="{{$value.num | mapImgFormat}}" alt="">
        <div class='device-coordinate-item selected' id="{{$value.buildingId}}">

        </div>
    </div>
    {{/each}}
</script>
<!--设备信息-->
<script type="text/html" id="deviceInfoTmpl">
    <li><label>设备类型：</label>{{bean.deviceName}}</li>
    <li><label>设备编号：</label><span class="d-code">{{bean.devicePositionCode}}</span></li>
    <li><label>设备位置：</label><span class="titleLocation">{{bean.devicePositionDescribe}}</span></li>
    <li><label>设备 I P ：</label>{{bean.controllerip}}</li>
    <li><label>安装时间：</label>{{bean.deviceInstallTime}}</li>
    <li><label>控制开关：</label><a class="t-btn t-btn-blue" id="btnConDoor">开门</a></li>
</script>
</body>


</html>